package com.dfba.demo04;

public interface PrivateInterface {
    private void test01(){
        System.out.println("接口中的普通私有方法...");
    }
    private static void test02(){
        System.out.println("接口中的静态私有方法...");
    }

    private void method02(){
        System.out.println("1111");
        System.out.println("2222");
        System.out.println("3333");
    }

    public default void test03(){
        System.out.println("开始");
        method02();
        System.out.println("结束");
    }

    public default void test04(){
        System.out.println("开始");
        method02();
        System.out.println("结束");
    }

    private static void method01(){
        System.out.println("1111");
        System.out.println("2222");
        System.out.println("3333");
    }

    public static void demo01(){
        System.out.println("重复代码如下：");
        method01();
    }

    public static void demo02(){
        System.out.println("重复代码如下：");
        method01();
    }
}
